package com.example.wechat.model;

import android.view.View;

public class MeMenuItem {
    private String id;
    private String title;
    private int iconResId;
    private String subtitle;
    private int type; // 0: 普通项, 1: 分割线
    private boolean showArrow;
    private View.OnClickListener onClickListener;
    private int badge;

    public MeMenuItem() {
        this.showArrow = true;
    }

    public MeMenuItem(String id, String title, int iconResId) {
        this.id = id;
        this.title = title;
        this.iconResId = iconResId;
    }

    public MeMenuItem(int iconResId, String title, String subtitle, int badge) {
        this.iconResId = iconResId;
        this.title = title;
        this.subtitle = subtitle;
        this.badge = badge;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setIconResId(int iconResId) {
        this.iconResId = iconResId;
    }

    public int getIconResId() {
        return iconResId;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setShowArrow(boolean showArrow) {
        this.showArrow = showArrow;
    }

    public boolean isShowArrow() {
        return showArrow;
    }

    public void setOnClickListener(View.OnClickListener onClickListener) {
        this.onClickListener = onClickListener;
    }

    public View.OnClickListener getOnClickListener() {
        return onClickListener;
    }

    public int getBadge() {
        return badge;
    }
} 